package linkprediction;

import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class Graph {
	private List<Node> nodes;
	private List<Edge> edges;
	private Map<Node,Set<Node>> graphMap;
	private boolean isDirected;
	
	public List<Edge> getEdges() {
		return edges;
	}
	
	public List<Node> getNodes() {
		return nodes;
	}
	
	public Map getGraphMap() {
		return graphMap;
	}

	public Set<Node> getNeighbors(Node x) {
		if(graphMap.containsKey(x))
			return graphMap.get(x);
		else
			return new HashSet<Node>();
	}
	

}